<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/WEB-INF/jsp/taglib.jsp" %>
<html>
<head>
    <c:import url="/WEB-INF/jsp/frontend/head.jsp" />
    <title>Title</title>
</head>
<body>
    <c:import url="/WEB-INF/jsp/frontend/header.jsp" />
    <p>hello world!</p>

    <table>
        <thead>
            <tr>
                <th>id</th>
                <th>name</th>
            </tr>
        </thead>
        <tbody>
        <c:forEach var="classify" items="${page.list}" varStatus="s">
            <tr class="column_${s.count}">
                <td class="list-text color999">${classify.name}</td>
                <td class="list-text color999">${classify.id}</td>
            </tr>
        </c:forEach>
        </tbody>
    </table>


    页次：${page.currentPage}/${page.totalPage}&nbsp;每页${page.pageSize}&nbsp;总数${page.totalRecord}&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="<c:url value='/demo?p=1'/>">首页</a>
    <c:choose>
        <c:when test="${page.currentPage>1}">
            <a href="<c:url value='/demo?p=${page.currentPage-1}'/>">上一页</a>
        </c:when>
        <c:otherwise>
            <a href="#">上一页</a>
        </c:otherwise>
    </c:choose>
    <%--
    &nbsp;&nbsp;
    <c:forEach var="i" begin="1" end="${page.totalPage}">
       <a href="<c:url value='/classify.htm?c=${page.list[0].classifyid}&p=${i}'/>">${i}</a>
    </c:forEach>
    --%>
    <c:choose>
        <c:when test="${page.currentPage<page.totalPage}">
            <a href="<c:url value='/demo?p=${page.currentPage+1}'/>">下一页</a>
        </c:when>
        <c:otherwise>
            <a href="#">下一页</a>
        </c:otherwise>
    </c:choose>

    <c:import url="/WEB-INF/jsp/frontend/footer.jsp" />
    <c:import url="/WEB-INF/jsp/frontend/script.jsp" />

</body>
</html>
